HTTP Request

  • A structure representing the headers from a HTTP request, without the body of the request.

    See more

    Declaration

    Swift

    public struct HTTPRequest
  • Method that takes a chunk of request body and is expected to write to the HTTPResponseWriter

    Declaration

    Swift

    public typealias HTTPBodyHandler = (HTTPBodyChunk, inout Bool) -> Void

    Parameters

    HTTPBodyChunk

    HTTPBodyChunk representing some or all of the incoming request body

    Bool

    A boolean flag that can be set to true in order to prevent further processing

  • Indicates whether the body is going to be processed or ignored

    See more

    Declaration

    Swift

    public enum HTTPBodyProcessing
  • Part or all of the incoming request body

    See more

    Declaration

    Swift

    public enum HTTPBodyChunk